import request from '@/utils/request'

// 查询管网监测压力记录列表
export function listDispatchPipeNetworkMonitoringPressureRecords(query) {
  return request({
    url: '/system/dispatchPipeNetworkMonitoringPressureRecords/list',
    method: 'get',
    params: query
  })
}

// 查询管网监测压力记录详细
export function getDispatchPipeNetworkMonitoringPressureRecords(pipeNetworkMonitoringPressureRecordsId) {
  return request({
    url: '/system/dispatchPipeNetworkMonitoringPressureRecords/' + pipeNetworkMonitoringPressureRecordsId,
    method: 'get'
  })
}

// 新增管网监测压力记录
export function addDispatchPipeNetworkMonitoringPressureRecords(data) {
  return request({
    url: '/system/dispatchPipeNetworkMonitoringPressureRecords',
    method: 'post',
    data: data
  })
}

// 修改管网监测压力记录
export function updateDispatchPipeNetworkMonitoringPressureRecords(data) {
  return request({
    url: '/system/dispatchPipeNetworkMonitoringPressureRecords',
    method: 'put',
    data: data
  })
}

// 删除管网监测压力记录
export function delDispatchPipeNetworkMonitoringPressureRecords(pipeNetworkMonitoringPressureRecordsId) {
  return request({
    url: '/system/dispatchPipeNetworkMonitoringPressureRecords/' + pipeNetworkMonitoringPressureRecordsId,
    method: 'delete'
  })
}
